<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组array</title>
</head>
<body>
<script>
    // var a=["how,","do","you","do"];
    // var b=["everyone","mali"];
    // var c=a.concat(b);
    // document.write(c);//合并数组
    //下一个例子
    // var a=["a","b","e","c","d","z","s"];
    // document.write(a.sort());//对数组进行排序
    // var i=["5","1","4","7","3","6","8"];
    // document.write(i.sort());//数组升序排列
    // document.write(i.sort(function (a,j) {
    //     return j-a;
    // }));//数组降序拍了
    //下一个列子
    var a=["a","b","c"];
    a.push("e");
    document.write(a);//在末尾追加
    var e=["a","d","f"];
    document.write(e.reverse());//翻转
</script>
</body>
</html>